<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    
</head>
<body>
    <div id="app">
      <ul>
          <li v-for="item in arr">
              {{item}}
          </li>
      </ul>
      <hr>
      <ul>
          <li v-for="(item,index) in arr">
            {{index}}
            =>
            {{item}}
          </li>
      </ul>
      <hr>
      <ul>
          <li v-for="(value, key, index) in json">
              {{key}}
              =>
              {{index}}
              =>
              {{value}}
          </li>
      </ul>
    </div>
    <script src="./vue.js"></script>
    <script>
        const vm = new Vue({
            el:"#app",
            data:{
                arr:['贾宝玉','刘姥姥','林黛玉','王熙凤'],
                json:{
                    name:"小明",
                    age:18,
                    gender:"男"
                }
            }
        });
        
    </script>
</body>
</html>